import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/animal_list_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/animal_list_entity.g.dart';

@JsonSerializable()
class AnimalListEntity {
	late int code;
	late String msg;
	late AnimalListData data;

	AnimalListEntity();

	factory AnimalListEntity.fromJson(Map<String, dynamic> json) => $AnimalListEntityFromJson(json);

	Map<String, dynamic> toJson() => $AnimalListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AnimalListData {
	late List<AnimalListDataRecords> records;
	late int total;
	late int size;
	late int current;
	late int pages;

	AnimalListData();

	factory AnimalListData.fromJson(Map<String, dynamic> json) => $AnimalListDataFromJson(json);

	Map<String, dynamic> toJson() => $AnimalListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AnimalListDataRecords {
	late int id;
	late String name;
	late String image;
	late String description;
	late String region;
	late String type;

	AnimalListDataRecords();

	factory AnimalListDataRecords.fromJson(Map<String, dynamic> json) => $AnimalListDataRecordsFromJson(json);

	Map<String, dynamic> toJson() => $AnimalListDataRecordsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}